using QxFramework.Core;
using System.Collections;
using System.Collections.Generic;
using System;
using UnityEngine;
using UnityEngine.UI;
public class ItemMenu : UIBase
{
    public override int UILayer => 5;
    private Text Name;
    private Text Describe;
    public override void OnDisplay(object args)
    {
        base.OnDisplay(args);
        Name = transform.Find("Name").GetComponent<Text>();
        Describe = transform.Find("Describe").GetComponent<Text>();
        transform.position = Input.mousePosition;

        Name.text = ((Item)args).itemName;
        Describe.text = ((Item)args).description;
    }
}
